<template>
    <svg aria-hidden="true" :width="width" :height="height">
        <use :xlink:href="symbolId" :fill="fill" />
    </svg>
</template>

<script setup>
import { computed } from "vue";
const props = defineProps({
    name: {
        type: String,
        required: true,
    },
    width: {
        type: Number,
        default: () => 20,
    },
    height: {
        type: Number,
        default: () => 20,
    },
    fill: {
        type: String,
        default: () => "#ffffff",
    },
    size: {
        type: [Number, String],
        default: () => 20,
    },
});
const symbolId = computed(() => `#icon-${props.name}`);
</script>

<style lang="scss" scoped></style>
